# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=android-apktool
pkgver=2.6.1
pkgrel=0
pkgdesc="Tool for reverse engineering Android apk files"
url="https://ibotpeaches.github.io/Apktool/"
arch="all !x86 !armhf !armv7 !riscv64"
# disabled due to openjdk11 limitations
license="Apache-2.0"
depends="openjdk11-jre-headless"
source="https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_$pkgver.jar
	apktool"
options="!check"
# no tests available

package() {
	install -Dm644 "$srcdir"/apktool_$pkgver.jar "$pkgdir"/usr/share/apktool/apktool.jar
	install -Dm755 "$srcdir"/apktool "$pkgdir"/usr/bin/apktool
}

sha512sums="
3cab65fe5cdbcc072f486281cbc1efde84eb0ecb5db52bd633c07640bf3f09fb79861df303e9c569f1399aa307226545ff0973039c31c3934a70890c6af5f48e  apktool_2.6.1.jar
8cb0d693996fe5a3df2f49120336962bc4d36ad6540744b6bc53dd1c03cc2b34e339f3749804abd9c054510b7093da77b18e77e886795c4f6b2206c64ea0247e  apktool
"
